<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" xmlns:s="http://sdm.msc.com/jsf"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:t="http://myfaces.apache.org/tomahawk">


<head>
<meta http-equiv="Content-Type" content="text/html;  charset=UTF-8" />
<f:view locale="#{prefs.locale}" />
<title><h:outputText value="#{i18n.portal_title}" /></title>
<t:stylesheet path="/themes/#{prefs.theme}/banner.css" />
<script type="text/javascript" src="../js/banner.js"></script> 
<script type="text/javascript" src="../js/unitpngfix.js"></script>
</head>

<ui:composition>
	<h:form id="form">
		<a4j:jsFunction name="showOptionsPage" action="#{prefs.showOptionsPage}" />
		<a4j:jsFunction name="showClipboard" action="#{prefs.showClipboard}" />
		<a4j:jsFunction name="changePassword" action="#{prefs.changePassword}" />
		<a4j:jsFunction name="editOwnUserInfo" action="#{prefs.editOwnUserInfo}" />
		<a4j:jsFunction name="isChangePasswordEnabled" action="#{prefs.isChangePasswordEnabled}" />
		<a4j:jsFunction name="displayExcelAddin" action="#{prefs.displayExcelAddin}" />
		<a4j:jsFunction name="displayMatPluginsDownload" action="#{prefs.displayMatPluginsDownload}" />
		<a4j:jsFunction name="displaySimManagerPluginsDownload" action="#{prefs.displaySimManagerPluginsDownload}" />
		<a4j:jsFunction name="showDisclaimer" action="#{prefs.showDisclaimer}" />
		<a4j:jsFunction name="editHomePage" action="#{prefs.homePageEdit}" />
		<a4j:jsFunction name="resetHomePage" action="#{prefs.homePageReset}" />
		<a4j:jsFunction name="logoff" action="#{logoff.logOff}" />
		<a4j:jsFunction name="changeUnits" action="#{prefs.changeUnits}" >
			<a4j:param name="currentUnits" assignTo="#{prefs.currentUnits}" />
		</a4j:jsFunction>
				<h:inputHidden id="errorMsg" value="#{i18n.error_searchString_invalid}" />
		
		</h:form>
		<t:div styleClass="BannerHeaderR4">
			<t:div styleClass="BannerLogoPortalNameR4" id="BannerLogoPortalNameR4_ID">
				<!--
				<h:graphicImage height="40"
					value="/themes/#{prefs.theme}/images/banner/logo.png"
					alt="#{i18n.portal_title}" />
				-->
			</t:div>
			<t:div id="configCheckStatus" styleClass="BannerLocaleTxtR4" style="float: left; padding-left: 50px;">
				<h:outputText value="#{monitor.configChanged ? i18n.prompt_logoff_configcheck_title :'' }" styleClass="ConfigCheck"  />
			</t:div>
			<t:div styleClass="BannerLocaleTxtR4">
				 <t:div style="float :right ; background-color : #FFFFFF">
					<h:panelGrid columns="7">
						<h:panelGrid id="searchMenuDiv" columns="3">
							<h:graphicImage class="easyOptionImage" id="s" height="16px"
								rendered="#{prefs.toolbarImage}" width="16px"
								value="#{prefs.defaultImage}" title="#{prefs.defaultLabel}" />
							<h:outputText class="easyOptionLabel" style="color: #000000"
								rendered="#{prefs.toolbarText}" value="#{prefs.defaultLabel}" />
							<h:graphicImage id="searchMenu"
								 height="16"
								value="/themes/#{prefs.theme}/images/table/descend.gif"
								style="cursor:pointer;" />
						</h:panelGrid>
						<input class="easyText" placeholder="#{i18n.prompt_search}"
							type="text" />
						<h:graphicImage
							value="/themes/#{prefs.theme}/images/banner/spacer.gif" />
						<h:graphicImage id="search" class="easyImage" height="16"
							value="../../images/header/EasySearch.png" style="cursor:pointer;" />
					</h:panelGrid>
				  </t:div>
				  
				 
				<!-- <a href="https://plm.nevint.com/3dspace/common/emxNavigator.jsp" style="text-decoration: none;" target="_blank">Material Apply</a>  
				<span class="BannerSeparator">|</span>  -->
				
				<a4j:commandLink onclick="showClipboard();return false;" styleClass="BannerLocaleTxtR4">
					<h:outputText value="#{i18n.homepage_history_clipboard_label}" styleClass="None" />
                    <h:graphicImage value="/icon/default/16/banner-clipboard.png"/>
				</a4j:commandLink>
                
                <span class="BannerSeparator">|</span>
                
				<!-- User Options -->
               	<span class="userMenu " style="cursor:pointer"  menu="usermenu1">#{user.name}</span>
              
                <img menu="usermenu1"  style="cursor:pointer" class="userMenu" src="../../icon/default/16/banner-down.png"/>
               	

                <span class="BannerSeparator">|</span>
				
				<!-- Logoff -->
				<a4j:commandLink onclick="confirmLogoff('#{i18n.prompt_logoff_question}' , '#{i18n.button_ok}' ,'#{i18n.button_cancel}' ); return false;"
					styleClass="BannerLocaleTxtR4">
					<h:outputText value="#{i18n.img_header_logOff}"
						styleClass="None" />
				</a4j:commandLink>
                
                <span class="BannerSeparator">|</span>
                
				<!-- SimManager Help -->
			
				<a4j:commandLink onclick="smShowPopup('#{prefs.helpUrl}',' ','#{prefs.reqParam}'); return false"
					styleClass="BannerLocaleTxtR4">
									
					<h:outputText value="#{i18n.img_header_help}" styleClass="None"/>
				</a4j:commandLink>
				<img id="simManMenu" menu="simmanmenu1" src="../../icon/default/16/banner-down.png" style="cursor:pointer;" />
				
				<!-- Easy Search -->
				 <span class="BannerSeparator"></span>
				
				<t:div id="logoffdialog" title="#{(logoff.materialCenter)?i18n.prompt_mat_header:i18n.prompt_default_header}" >
	
				</t:div>
				
				
			</t:div>
		</t:div>

	<script type="text/javascript">
		var testCompatible = __isIECompatibilityMode();
		if (testCompatible) {
			alert("#{i18n.prompt_ie_compatibilityMode}");
		}
		(function($){
			var locale = "#{prefs.language}";			
			locale =locale.replace("_","-");
			locale = (locale.match("^en")) ? "":locale;			
			$.datepicker.setDefaults($.datepicker.regional[locale]);
			//jQueryEnterprise.datepicker.regional['fr'];
			//var isConfig = "#{logoff.materialCenter}" == "true";
			
				
			var jImg = $('img.easyImage');
			var jText = $('input.easyText');
			var jOptImg = $('img.easyOptionImage');
			jOptImg.attr("ot" , "#{prefs.defaultImage}");
			jText.keyup(function(e) {
				if (e.which == 13) {
					Richfaces.showModalPanel('SMSTATUSDLG-status');
					easySearch(jOptImg.attr("ot"), 'easySearch', jText.val());
				}
			});
			jImg.click(function(event) {
				var jOptImg = $('img.easyOptionImage');
				Richfaces.showModalPanel('SMSTATUSDLG-status');
				easySearch(jOptImg.attr("ot"), 'easySearch', jText.val());
			});
			var jUserLink = $('.userMenu');
			var img = "../../mod/jquery/mbMenu/ico/";
			jUserLink.buildMenu({
	            rpc: createUserOptions,
	            menuWidth:200,
	            openOnRight:false,
	            menuSelector: ".menuContainer",
	            iconPath: img,
	            hasImages:true,
	            adjustLeft:2,
	            adjustTop:10,
	            menuLeft :-60,
	            menuTop : 4,
	            hoverIntent:0,
	            openOnClick:true,
	            submenuHoverIntent:200
	        });
			var jSimManLink = $('#simManMenu');
            jSimManLink.buildMenu({
                rpc: createSimManOptions,
                menuWidth:200,
                openOnRight:false,
                menuSelector: ".menuContainer",
                iconPath: img,
                hasImages:false,
                adjustLeft:2,
                menuLeft : -40,
                menuTop : 4,
                adjustTop:10,
                hoverIntent:0,
                openOnClick:true,
                submenuHoverIntent:200
            });
            var jSearchLink = $('#searchMenuDiv');
            jSearchLink.attr("menu" , "searchmenu");
            var img1 = "../../servlet/ilu?c=objectType&amp;s=16&amp;n=";
           
            jSearchLink.buildMenu({
                rpc: createEasySearchMenu,
                menuWidth:200,
                openOnRight:false,
                menuSelector: ".menuContainer",
                hasImages:true,
                iconPath : img1,
                isAnchorTag : true,
                isEasySearch : true,
                adjustLeft:2,
                adjustTop:10,
                menuLeft : -2,
                hoverIntent:0,
                openOnClick:true,
                submenuHoverIntent:200
            });
			
			
			var svgHtml =  '	   <svg class="header__logo__desktop01" width="80px" height="40px" viewBox="0 0 112 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+
				'	        <desc>Created with sketchtool.</desc>'+
				'	        <defs></defs>'+
				'	        <g id="UI-KIt0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">'+
				'	          <g id="UI-Kit-v10" transform="translate(-267.000000, -362.000000)"></g>'+
				'	          <g id="Logo_White_Desktop0" fill="#fff">'+
				'	            <g id="Logo0">'+
				'	              <g id="Group-00">'+
				'	                <path d="M39.7206076,30.9588952 C38.0279661,29.2662537 32.9022213,24.140509 32.0315171,23.2698047 C30.4255198,21.663334 30.5614046,21.7182561 28.2845058,21.7182561 L13.8660406,21.7182561 C11.5886684,21.7182561 11.7250266,21.663334 10.1180825,23.2698047 C9.24785165,24.140509 4.12258039,29.2662537 2.42993884,30.9588952 C4.20354311,34.5382995 6.93496942,37.4647938 10.2241389,39.4751312 C12.1937581,37.5069323 18.0983547,31.6018623 19.0817439,30.6184731 C19.8880568,29.8116867 20.2455238,29.4996725 20.682533,29.3656816 C20.8217321,29.3230696 20.935364,29.2932413 21.0750365,29.2932413 C21.2180233,29.2932413 21.3283409,29.3230696 21.4675399,29.3656816 C21.9045492,29.4996725 22.2620162,29.8116867 23.0683291,30.6184731 L31.9249872,39.4751312 C35.215577,37.4647938 37.9465299,34.5382995 39.7206076,30.9588952 L39.7206076,30.9588952 Z" id="Fill-1"></path>'+
				'	                <path d="M11.2324798,20.9642612 C11.8129493,20.3378655 11.7315131,19.8071099 12.300146,18.3322628 C12.8152772,16.998982 13.6182758,15.8205248 14.6281791,14.8698047 C16.4103058,13.1923141 18.7298165,12.3140343 21.0748945,12.3135609 C23.4204458,12.3140343 25.7394831,13.1923141 27.5220833,14.8698047 C28.5315131,15.8205248 29.3349852,16.998982 29.8496429,18.3322628 C30.4182758,19.8071099 30.3368396,20.3378655 30.9173091,20.9642612 C31.4826277,21.5745591 32.0763543,21.7180193 33.9238193,21.7180193 L41.8846794,21.7180193 C41.8846794,15.704999 39.3019215,10.2000079 35.1429947,6.38434405 C31.2236417,2.78836851 26.1760189,0.909654764 21.0748945,0.908707832 C15.97377,0.909654764 10.9266206,2.78836851 7.00679424,6.38434405 C2.84739396,10.2000079 0.265582955,15.704999 0.265582955,21.7180193 L8.22596962,21.7180193 C10.0734346,21.7180193 10.6676346,21.5745591 11.2324798,20.9642612" id="Fill-3"></path>'+
				'	 			 </g>'+
				'	            </g>'+
				'	          </g>'+
				'	        </g>'+
				'	      </svg>' ;
	 document.getElementById("BannerLogoPortalNameR4_ID").innerHTML= svgHtml ;
			
            
		})(jQueryEnterprise);
		
		
		
		
	</script>
</ui:composition>
</html>